﻿<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="BlogWrite.aspx.cs" Inherits="TimeCapsule.BlogWrite" MasterPageFile="~/MasterPage.Master" ValidateRequest="false" %>

<asp:Content ID="Content1" ContentPlaceHolderID="Head" runat="Server">
<link rel="Stylesheet" type="text/css" href="common/xq_ui.css" />
<script type="text/javascript" src="lib/xquared/XQuared.js?load_others=1"></script>
<script type="text/javascript" src="lib/xquared/plugin/FileUploadPlugin.js"></script>
<script type="text/javascript" src="lib/jquery-1.7.min.js"></script>
<script type="text/javascript" src="lib/jquery-ui-1.8.16.custom.min.js"></script>

<script type="text/javascript">
	var xed;
	$j = jQuery.noConflict();
	
	$j(document).ready(function () {
		xed = new xq.Editor("xqEditor");

		xed.isSingleFileUpload = true;
		xed.addPlugin('FileUpload');
		xed.setFileUploadTarget('lib/ImageUpload.aspx', null);
		xed.setEditMode('wysiwyg');
		xed.setWidth("100%");
		
		$j('.btnSubmit').button();
	});

</script>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="Body" runat="server">
	<div class="divBlogWrite">
		<table class="blogWrite">
			<tr class="row_title">
				<td class="col_title1">
					제목
				</td>
				<td class="col_title2">
					<asp:TextBox ID="txtTitle" runat="Server" Width="100%" />
				</td>
			</tr>
			<tr class="row_body1">
				<td class="col_body1" colspan="2">
					내용
				</td>
			</tr>
			<tr class="row_body2">
				<td class="col_body2" colspan="2">
					<%--<asp:TextBox ID="txtBody" runat="Server" Height="100%" Width="100%" Rows="5" />--%>
					<textarea id="xqEditor" name="xqEditor"></textarea>
				</td>
			</tr>
			<tr class="row_button">
				<td class="col_button" colspan="2">
					<asp:Button ID="btnSubmit" name="btnSubmit" runat="Server" OnClick="Submit" CssClass="btnSubmit" Text="글쓰기" />
				</td>
			</tr>
		</table>
	</div>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="Dialog" runat="Server">

</asp:Content>